import {v4 as uuidv4} from "uuid";

export function generateVerificationCode() {
    const uuid = uuidv4(); // 生成 UUID v4 字符串
    const code = uuid.replace(/\D/g, '').substr(0, 4); // 提取字符串中的数字并截取前四位
    return code;
}
